Notices
The following notices shall help you to use iRPGUnit properly and to understand
unexpected results.
How it works
Basically iRPGUnit tries to works exactly the same as JUnit. But there is a
problem with statements monitored by the CALLP
extender (E)
.
Whereas monitor groups work just fine.
Monitor Group
iRPGUnit assertions are correctly processed. In case of a failing assertion, the error
is seen and added to the log.
Works well
monitor;
// calculation statements
aEqual( 'HelloWorld' : 'Hello' ); // correctly reported
on-error;
// error handler
endmon;
CALLP - Error Extender
iRPGUnit assertions do not work with the the error extender and hence you must ensure
not to use CALLP(E)
to call the iRPGUnit assertions.
Good
aEqual( 'HelloWorld' : 'Hello' );
callp aEqual( 'HelloWorld' : 'Hello' );
Wrong
callp(e) aEqual( 'HelloWorld' : 'Hello' ); // not reported by iRPGUnit!